//三位数反转
let util = require('../util')
let n = util.readSyncByfs('请输入一个三位数:');
let putNum = n%10*100+parseInt(n/10)%10*10+parseInt(n/100)%10;
//1-7
console.log(`${n}反转后为：${(Array(3).join('0') + putNum).slice(-3)}`);
//1-6
console.log(`${n}反转后为：${putNum}`);

